﻿<Window x:Class="ArboriumExplorer.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="550" Width="750">
    
    <Grid Background="WhiteSmoke">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="2*" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="30" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <TreeView Grid.Row="1" Margin="5,0,0,0" Name="treeView" VerticalAlignment="Stretch" HorizontalContentAlignment="Stretch">
            <TreeView.ContextMenu>
                <ContextMenu ItemsSource="{Binding}" IsEnabled="true">
                    <MenuItem Header="Copy" Click="ToClipboardCommand"/>
                    <MenuItem Header="Paste" Click="FromClipboardCommand"/>
                    <MenuItem Header="Add" Click="AddCommand"/>
                    <MenuItem Header="Edit" Click="EditCommand"/>
                    <MenuItem Header="Delete" Click="DeleteCommand"/>
                    <Separator />
                    <MenuItem Header="Attach" Click="AttachCommand" />
                    <MenuItem Header="Detach" Click="DetachCommand" />
                </ContextMenu>
            </TreeView.ContextMenu>
        </TreeView>
        <ToolBar Height="30" HorizontalAlignment="Stretch" Name="toolBar" VerticalAlignment="Top" Grid.ColumnSpan="2" IsHitTestVisible="True">
            <Button Content="New" Click="NewCommand" />
            <Button Content="Paste new" Click="NewFromClipboardCommand" />
            <Button Content="Load" Click="LoadCommand" />
            <Button Content="Save" Click="SaveCommand" />
            <Separator Style="{StaticResource {x:Static ToolBar.SeparatorStyleKey}}" />
            <Button Content="Copy" Click="ToClipboardCommand" />
            <Button Content="Paste" Click="FromClipboardCommand" />
            <Button Content="Add" Click="AddCommand" />
            <Button Content="Edit" Click="EditCommand" />
            <Button Content="Delete" Click="DeleteCommand" />
            <Separator Style="{StaticResource {x:Static ToolBar.SeparatorStyleKey}}" />
            <Button Content="Attach" Click="AttachCommand" />
            <Button Content="Detach" Click="DetachCommand" />
        </ToolBar>

        <GridSplitter Grid.Row="1" HorizontalAlignment="Left" Name="gridSplitter" VerticalAlignment="Stretch" Width="5" Grid.Column="1" Background="WhiteSmoke" />
        <RichTextBox Grid.Column="1" Grid.Row="1" HorizontalAlignment="Stretch" Margin="5,0,5,0" Name="ValueBox" VerticalAlignment="Stretch" IsReadOnly="True" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" FontFamily="Arial Unicode MS" />
    </Grid>
</Window>
